package com.windgo.service;

import com.windgo.bean.MarketStorage;
import com.windgo.mapper.MarketStorageMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class WxStorageServiceImpl implements WxStorageService{
    @Autowired
    MarketStorageMapper storageMapper;


    @Override
    public int uploadStorage(MarketStorage marketStorage) {
        int affectedRows = storageMapper.uploadStorage(marketStorage);
        return affectedRows;
    }

    @Override
    public MarketStorage queryMarketStorage(Integer id) {
        MarketStorage marketStorage = storageMapper.queryStorageById(id);
        return marketStorage;
    }
}
